﻿<div class="login-status">
    @if (User.Identity.IsAuthenticated)
    {
        <span>Welcome, @User.Identity.Name</span>
        <span class="divider">|</span>
        <a href="/logout">Logout</a>
    }
    else
    { 
        <a href="/login">Login</a> @:|
        <a href="/register">Register</a>
    }
</div>

    